package com.zd.learn.demo.test;

/**
 * @Author zd
 * @Date 2020/5/24 17:29
 * @Version 1.0
 * 描述:
 */
public class CheckPrivateClass {
    private CheckPrivateClass(String msg){
        System.out.println(msg);
    }

    public static void main(String[] args) {
        CheckPrivateClass checkPrivateClass = new CheckPrivateClass("ddddd");

    }
}

class Test{
    public static void main(String[] args) {
        //私有构造函数是一种特殊的实例构造函数。它通常用在只包含静态成员的类中（单例模式）。
        //CheckPrivateClass checkPrivateClass = new CheckPrivateClass("dddd");
    }
}
